package io.github.talelin.latticy.dto.K;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.xml.crypto.Data;
import java.time.LocalDate;

@Getter
@Setter
public class CollectorDTO {
    /**
     * 单位编号
     */
//    @NotBlank  //必传
    @TableField("DWBH")
    private Integer dwbh;

    /**
     * 网关编号
     */
    //    @NotBlank  //必传
    private Integer bGId;

    /**
     * 分组编号
     */
    @NotBlank  //必传
    @Length(max = 2)
    private String groupId;

    /**
     * 采集器ID
     */
    @NotBlank  //必传
    @Length(max = 2)
    private String collectorId;

    /**
     * 采集器名称
     */
    @NotBlank  //必传
    @Length(max = 20)
    private String collectorName;

    /**
     * 规格型号
     */
    @Length(max = 20)
    private String specificationsModel;

    /**
     * 生产厂家
     */
    @Length(max = 20)
    private String manufacturers;

    /**
     * 采集器类型
     */
    @Length(max = 5)
    private String collectorType;

    /**
     * 采集器序列号
     */
    @Length(max = 20)
    private String collectorNumber;

    /**
     * 采集器状态
     */
    private String collectorState;

    /**
     * 温度单位
     */
    @Length(max = 10)
    private String tUnit;

    /**
     * 温度上限值
     */
    private Float tHigh;

    /**
     * 温度下限值
     */
    private Float tLower;

    /**
     * 湿度单位
     */
    @Length(max = 10)
    private String hUnit;

    /**
     * 湿度上限值
     */
    private Float hHigh;

    /**
     * 湿度下限值
     */
    private Float hLower;

    /**
     * 购买日期
     */
    private LocalDate buyDate;

    /**
     * 启用日期
     */
    private LocalDate  usingDate;
}
